package suncertify.db;

/**
 * A type of <code>Exception</code> indicating that the user entered an invalid argument to
 * start up the application.
 * @author Paul Wilhelm
 */
public class InvalidArgumentException extends Exception{
	

	private static final long serialVersionUID = 1981;			//UID that is verified during deserialization
	private String message;										//The default message to be displayed when Exception is thrown
	
	/**
	 * Regular Constructor.  Passes a default String object to
	 * the String constructor.
	 */
	public InvalidArgumentException(){
		this("You have provided an invalid argument.  Valid arguments are 'server', 'alone', or you can leave the argument blank");
	}
	
	/**
     * String constructor that takes a customizable String to set as the message
     * of the Exception.
     * @param message - The message to be displayed when the Exception is thrown
     */
	public InvalidArgumentException(String message){
		this.message = message;
	}
	
	/**
     * Gets the message of the <code>InvalidArgumentException</code>.
     * @return The Message that the Exception should display
     */
	public String getMessage(){
		return message;
	}

}
